package br.usp.pcs.basys2;

public class ActivityDuty implements Comparable<ActivityDuty> {
	private Activity activity;
	private Integer startTime;

	public Activity getActivity() {
		return activity;
	}

	public void setActivity(Activity activity) {
		this.activity = activity;
	}

	public Integer getStartTime() {
		return startTime;
	}

	public void setStartTime(Integer startTime) {
		this.startTime = startTime;
	}

	public int compareTo(ActivityDuty o) {
		return this.startTime.compareTo(o.startTime);
	}

	@Override
	public String toString() {
		return activity.getClass().getSimpleName() + ":" + startTime;
	}

}
